import { Component, Input } from '@angular/core';

@Component({
    selector : "text",
    template : `
        <div [ngStyle]="{'background-color':bgColor}">
             <ng-content></ng-content>
        </div>
    `,
    styleUrls: ['./text.component.css']
})
export class TextComponent {
    @Input() text:string;
    @Input() bgColor:string;
    
}